const mongoose = require("mongoose")
const { Schema, model } = mongoose

const topicSchema = new Schema({
    __v: {
        type: Number,
        select: false
    },
    // 问题名称
    name: {
        type: String,
        required: true
    },
    // 问题图片
    avatar_url: {
        type: String
    },
    // 问题简介
    introduction: {
        type: String,
        select: false
    }
}, { timestamps: true })

module.exports = model("Topic", topicSchema)